class Sinhvien1 < ActiveRecord::Base
  attr_accessible :birthday, :email, :mssv, :name
  validates :mssv,  :presence => true,:length => { :minimum => 8 }
  validates :name, :presence => true
  has_many :events
end
